home *** CD-ROM | disk | FTP | other *** search
/ Stolen Data 3 / Stolen Data 3.adf / MAG-TEXT / CODE1b < prev    next >
Text File  |  1989-01-01  |  906b  |  31 lines

  1.  
  2.  
  3.               SPEEDY BOBS
  4.               -----------
  5. 1)    The   first   area   you   should
  6. concentrate on optimising is the screen
  7. clear  routine.  How you may ask, I use
  8. the  blitter  so isnt that fast enough?
  9. Well  the  blitter  when clearing areas
  10. only uses one channel, thus most of the
  11. processor  time  is left free.  This is
  12. often    used    to   perform   lengthy
  13. calculations  with the processor whilst
  14. the  blitter is busy, during which time
  15. the processor runs at almost top speed.
  16. We can also use this time to clear part
  17. of  the screen with the processor.  The
  18. fastest   way   is  to  use  a  MOVEM.L
  19. instruction
  20.   eg.   Suppose the blitter is clearing
  21. the  top  part  of  the  screen, and a0
  22. points to its start
  23.  
  24.  Lea     Screensize(a0),a0
  25.  Movem.l d0-d7/a1-a6,-(a7)    
  26.  Movem.l Blank(pc),d0-d7/a1-a6
  27.  
  28.  Movem.l d0-d7/a1-a6,-(a0)
  29.  ......................... n times
  30.  Movem.l d0-d7/a1-a6,-(a0)
  31.